package com.atguigu.demo.excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import javax.xml.crypto.Data;
import java.util.Map;

public class ExeclListener extends AnalysisEventListener<Demodata> {
    //一行一行读取execl内容
    @Override
    public void invoke(Demodata demodata, AnalysisContext analysisContext) {
        System.out.println("****"+ demodata);
    }

    //读取表头方法
    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        System.out.println("表头："+headMap);
    }

    //读取完后
    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
